{% load helpers %}
<div class="nb-node">
    <strong>{{ device|hyperlinked_object }}</strong><br />
    {{ device.device_type.manufacturer }} {{ device.device_type }}<br />
    {{ device.location|hyperlinked_object }}
    {% if device.rack %}
        / {{ device.rack|hyperlinked_object }}
    {% endif %}
</div>
